.class public Lcom/estrongs/android/pop/app/HelpActivity;
.super Lcom/estrongs/android/pop/esclasses/ESSettingsBaseActivity;
.source "HelpActivity.java"


# instance fields
.field private final d:Ljava/lang/String;

.field private final e:Ljava/lang/String;

.field private f:Lcom/estrongs/android/pop/esclasses/ESWebView;

.field private final g:[Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESSettingsBaseActivity;-><init>()V

    const-string v0, "text/html"

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/HelpActivity;->d:Ljava/lang/String;

    const-string v0, "utf-8"

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/HelpActivity;->e:Ljava/lang/String;

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "index.html"

    aput-object v2, v0, v1

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/HelpActivity;->g:[Ljava/lang/String;

    return-void
.end method

.method private c(Ljava/lang/String;)Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->clearHistory()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->clearCache(Z)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return v1
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESSettingsBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f1104bd

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(I)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    const p1, 0x7f0c01a7

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    const p1, 0x7f0904ef

    .line 5
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/esclasses/ESWebView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const/4 v0, 0x1

    .line 6
    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->setFocusableInTouchMode(Z)V

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const-string v0, "accessibility"

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->removeJavascriptInterface(Ljava/lang/String;)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const-string v0, "accessibilityTraversal"

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->removeJavascriptInterface(Ljava/lang/String;)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const-string v0, "searchBoxJavaBridge_"

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->removeJavascriptInterface(Ljava/lang/String;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    new-instance v0, Lcom/estrongs/android/pop/app/HelpActivity$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/HelpActivity$a;-><init>(Lcom/estrongs/android/pop/app/HelpActivity;)V

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 12
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->c()Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "http://www.estrongs.com/eshelp/cn/ES_File_Explorer_User_Manual3.0.htm"

    goto :goto_0

    :cond_0
    const-string p1, "http://www.estrongs.com/eshelp/en/ES_File_Explorer_User_Manual3.0.htm"

    .line 13
    :goto_0
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/HelpActivity;->c(Ljava/lang/String;)Z

    return-void
.end method

.method public onDestroy()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    .line 1
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I

    move-result p1

    if-nez p1, :cond_1

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->canGoBack()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->stopLoading()V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/HelpActivity;->f:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->goBack()V

    goto :goto_0

    .line 5
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    :goto_0
    const/4 p1, 0x1

    return p1

    :cond_1
    const/4 p1, 0x0

    return p1
.end method
